﻿<%@ Page Title="订单货品 " Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="BBPA.Admin.SYS.Orders_Goods.List" %>

<%@ MasterType VirtualPath="/List.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        trHeight = trH3;
        bodyWidth = 650;
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_th" runat="server">
    <th style="width: 60px">图片</th>
    <th>商品名称</th>
    <th>预定数量</th>
    <th >预定单价</th>
    <th id="th_ActualAmount" runat="server">实际数量</th>
    <th id="th_ActualPrice" runat="server" >实际单价</th>
    <th id="th_ActualPriceSum" runat="server" data-column="ActualPriceSum" data-sum="1">实际总价</th>
    <th id="th_IsDelivery" runat="server">采购方式</th>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_td" runat="server">
    <td data-row-title="<%#Eval("Name") %>" >
        <img class="list_pic" src="<%#DataTypePlus.requestString( Eval("PicURL")).Replace("UploadFiles","UploadFiles/_thumbs") %>"  data-width="<%#Eval("PicWidth") %>" data-height="<%#Eval("PicHeight") %>"/></td>
    <td>
        <div class="intd">
            <%#Eval("Number") %> <%#Eval("BrandName") %> <%#Eval("Name") %> <%#Eval("Code") %>
            </div></td>

    <td><%#Eval("ExpectAmount") %></td>
    <td><%#StringPlus.showMoney_empty( OrdersState<((int)EnumHelper.OrdersState.GetMoney)?BBPA.BLL.Goods.GetSellPrice(Eval("GoodsID"),Eval("ExpectAmount")): Eval("ExpectPrice")) %></td>
    <td id="td_ActualAmount" runat="server">
        <span class="<%#Eval("ExpectAmount")!=Eval("ActualAmount")?"text-warning":"" %>"><%#Eval("ActualAmount") %></span><br>
        <span class="label label-info <%#(int)Eval("ActualGiftNumber")==0?"hide":"" %>">赠<%#Eval("ActualGiftNumber") %></span>
    </td>
    
    <td id="td_ActualPrice" runat="server">
        <span class="<%#Eval("ExpectPrice")!=Eval("ActualPrice")?"text-warning":"" %>">
            <%# StringPlus.showMoney_empty(  Eval("ActualPrice") )%></span><br>
        <span class="label label-info <%#(int)Eval("ActualDiscount")==100?"hide":"" %>"><%#Eval("ActualDiscount") %>折</span>
    </td>
    <td id="td_ActualPriceSum" runat="server">
        <span class="<%#Eval("ExpectPriceSum")!=Eval("ActualPriceSum")?"text-warning":"" %>">
            <%# StringPlus.showMoney_empty(  Eval("ActualPriceSum") )%></span>
    </td>
    <td id="tb_IsDelivery" runat="server"><%#Eval("IsDelivery")!=DBNull.Value?((bool)Eval("IsDelivery")?"发货":"自提"):"" %></td>

</asp:Content>
<asp:Content ID="con_ControlsBottom" ContentPlaceHolderID="cph_ControlsBottom" runat="server">
    <div id="bat_add2order" runat="server">
    <button  class="btn button_bat" data-confirm-msg="确认继续采购？" data-action="add2order"><i class="fa fa-truck"></i>继续采购</button>
        </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cph_search" runat="server">
    
    <div class="control-group RadioButtonList nowrap">
        <label>采购方式：</label>
        <asp:RadioButtonList ID="search_radio_isdelivery" runat="server"  RepeatDirection="Horizontal" RepeatLayout="Flow" NeedLeaderWork="true">
            <asp:ListItem Text="全部" Value="" Selected="True"></asp:ListItem>
            <asp:ListItem Text="发货" Value="1" ></asp:ListItem>
            <asp:ListItem Text="自提" Value="0" ></asp:ListItem>
        </asp:RadioButtonList>
    </div>
    <div class="control-group RadioButtonList nowrap">
        <label>采购状态：</label>
        <asp:RadioButtonList ID="search_radio_actualamount" runat="server"  RepeatDirection="Horizontal" RepeatLayout="Flow" NeedLeaderWork="true">
            <asp:ListItem Text="全部" Value="" Selected="True"></asp:ListItem>
            <asp:ListItem Text="已采购" Value="1" ></asp:ListItem>
            <asp:ListItem Text="未采购" Value="0" ></asp:ListItem>
        </asp:RadioButtonList>
    </div>
    
</asp:Content>
